<?php
class FormUpload extends CFormModel{
	public $foto;
	
	public function rules(){
		return array(
			array('foto', 'file', 'allowEmpty'=>false, 'types'=>'jpeg,jpg,png'),
		);
	}
}